<?php
/**
 * Created by PhpStorm.
 * User: geminiblue
 * Date: 14-3-3
 * Time: 下午2:39
 */
 $params = array(
    'components' => array(
        'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class'      => 'CFileLogRoute',
                    'levels'     => 'info,warning,error',
                    'categories' => 'application',
                ),
                array(
                    'class'      => 'CFileLogRoute',
                    'levels'     => 'warning',
                    'categories' => 'php.warning.*',
                    'logFile'    => 'php.echo.warning',
                ),
                array(
                    'class'      => 'CFileLogRoute',
                    'levels'     => 'error',
                    'categories' => 'api.error.*',
                    'logFile'    => 'api.error.log',
                ),
                array(
                    'class'      => 'CFileLogRoute',
                    'levels'     => 'info',
                    'categories' => 'api.info.*',
                    'logFile'    => 'api.info.log',
                ),
                array(
                    'class'      => 'CFileLogRoute',
                    'levels'     => 'warning',
                    'categories' => 'api.warning.*',
                    'logFile'    => 'api.warning.log',
                ),
                array(
                    'class'      => 'CFileLogRoute',
                    'levels'     => 'info',
                    'categories' => 'api.performance.*',
                    'logFile'    => 'api.performance.log',
                ),
            ),
        ),
    ),
    'params'=>array(
        // application-level parameters that can be accessed
        // using Yii::app()->params['paramName']
        // this is used in contact page
        'adminEmail' => 'webmaster@example.com',
        //静态文件地址
        // 'mediaUrl' => '/static',
        'mediaUrl' => 'http://cgtzfiles.b0.upaiyun.com/style3',
        //java后端通信地址
        //'back_host' => 'http://10.161.168.120:9527/',
        'back_host'  => 'http://nginx_proxy.cgtz.com:9528/',
        'back_host2' => 'http://nginx_proxy.cgtz.com:9528/',
        'back_host3' => 'http://nginx_proxy.cgtz.com:9528/',
        'mobile_host' => 'http://mobile.cgtz.com',
        'static_project_id'=>'151800094',
        'queeMail' => 'mail',
        'queeMobile' => 'Mobile',
        'tips'=>array(
            'bound_mail_subject'=>'邮箱绑定',
        ),
        'mobile' => array(
            'source' => 'cgtz',
            'smslimit' => 3,
            'queeMobile' => 'sms',
        ),
        'llpay'=>array(
                //商户编号是商户在连连钱包支付平台上开设的商户号码，为18位数字，如：201306081000001016
            'oid_partner'=>'201408151000001585',
                //安全检验码，以数字和字母组成的字符
            'key'=>'dhwqefasdaepwo213121sasa_20140827',
            'busi_partner'=>'101001',
                //↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
                //版本号
            'version'=>'1.0',
                //防钓鱼ip
                // 'userreq_ip'=>'10.10.246.110';
                //证件类型
            'id_type'=>'0',
            //签名方式 不需修改
            'sign_type'=>strtoupper('MD5'),
            //订单有效时间  分钟为单位，默认为10080分钟（7天）
            'valid_order'=>"10080",
            //字符编码格式 目前支持 gbk 或 utf-8
            'input_charset'=>strtolower('utf-8'),
            'notify_url'=>"http://115.29.220.89:8101/cgtz-rest",
            //页面跳转同步通知页面路径
            'return_url'=>"http://www.cgtz.com/order/rechargesuccess",
            //访问模式,根据自己的服务器是否支持ssl访问，若支持请选择https；若不支持请选择http
            //身份证类型
            'transport'=>'http',
            'backList'=>array(
                array('code' => 2,  'name' => '农业银行', 'needBranch' => 0,'alias' => 'ABC' ),
                array('code' => 4,  'name' => '工商银行', 'needBranch' => 0,'alias' => 'ICBC' ),
                array('code' => 3,  'name' => '建设银行', 'needBranch' => 0,'alias' => 'CCB' ),
                array('code' => 6,  'name' => '招商银行', 'needBranch' => 0,'alias' => 'CMB' ),
                array('code' => 1,  'name' => '中国银行', 'needBranch' => 1,'alias' => 'BOC' ),
                array('code' => 7,  'name' => '浦发银行', 'needBranch' => 0,'alias' => 'SPDB' ),
                array('code' => 10, 'name' => '光大银行', 'needBranch' => 0,'alias' => 'CEB' ),
                array('code' => 13, 'name' => '华夏银行', 'needBranch' => 1,'alias' => 'HXB' ),
                array('code' => 14, 'name' => '平安银行', 'needBranch' => 0,'alias' => 'SDB' ),
                array('code' => 11, 'name' => '兴业银行', 'needBranch' => 1,'alias' => 'CIB' ),
                array('code' => 9,  'name' => '中信银行', 'needBranch' => 0,'alias' => 'CITIC'),
            ),
        ),
         //联动优势支付
        'umppay' => array(
            'banks' => array(
                array('code' =>'4', 'name'=>'工商银行','needBranch' => 0,'alias' => 'ICBC'),
                array('code' =>'2', 'name'=>'农业银行','needBranch' => 0,'alias' => 'ABC'),
                array('code' =>'6', 'name'=>'招商银行','needBranch' => 0,'alias' => 'CMB'),
                array('code' =>'15','name'=>'邮储银行','needBranch' => 1,'alias' => 'PSBC'),
                array('code' =>'11','name'=>'兴业银行','needBranch' => 1,'alias' => 'CIB'),
                array('code' =>'10','name'=>'光大银行','needBranch' => 0,'alias' => 'CEB'),
                array('code' =>'3', 'name'=>'建设银行','needBranch' => 0,'alias' => 'CCB'),
                array('code' =>'1', 'name'=>'中国银行','needBranch' => 1,'alias' => 'BOC'),
            ),
        ),
        'UpYun' => array(
            'visitUrl' => 'http://cgtzimage.b0.upaiyun.com',//images
            'cutUrl' => 'http://cgtzimage.b0.api.upyun.com',
            'bucketname' => 'cgtzimage',
            'username' => 'caogen',
            'password' => 'caogen123',
            'bucket_file_name' => 'cgtzfiles',
            'attachUrl' => 'http://cgtzfiles.b0.upaiyun.com',//files
        ),
        'site'=>array(
            'telphone'=>'4008538800',
            'randgift'=>'300',
        ),
        'recharge'=>array(
            'mark'=>'CG_RECHARGE',
            'gateWay'=>array(
                'bh'=>array('name'=>'BH','paymethod'=>1,'className'=>'EasypayService','section'=>'easypay'),
                'sf'=>array('name'=>'SP','paymethod'=>2,'className'=>'ShengPay','section'=>'sfpay'),
                'll'=>array('name'=>'LL','paymethod'=>3,'className'=>'LianLianPay','section'=>'llpay'),
                'ump'=>array('name'=>'UMP','paymethod'=>5,'className'=>'','section'=>''),
            ),
        ),
        'contract_dir'      => '/data/contract/',
        'contract_oss_url'  => 'http://oss.aliyuncs.com/cgtz/data/contract',
        'status_withdraw'   => array('-2'=>'失败','-1'=>'拒绝','1'=>'处理中','5'=>'成功'),
        'rechargeType'      => array('0'=>'线上','1'=>'线下'),//充值类型
        'rechargeMethod'    => array('0'=>'网银','1'=>'易生支付','2'=>'盛付通'),//充值方式
        'bindCardFee'       => 1,//绑卡费用
    ),
 );
$_server = CMap::mergeArray($params,require(dirname(dirname(__FILE__)).'/server.php'));
$_db = CMap::mergeArray($_server,require(dirname(__FILE__).'/db.php'));
$_public_params = CMap::mergeArray($_db,require(dirname(dirname(__FILE__)).'/publicParams.php'));
return  CMap::mergeArray($_public_params,require(dirname(__FILE__).'/cache.php'));

